package com.lyncs.ods.modules.goods.model;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @author alex
 * @date 2022/4/03 22:55
 * @description
 */
@Data
@Accessors(chain = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class SkuDetailInfo {

    @ApiModelProperty("sku id")
    private Long skuId;

    @ApiModelProperty("spu的id，值为0表示自定义SKU")
    private Long spuId;

    @ApiModelProperty("spu name")
    private String spuName;

    @ApiModelProperty("sku名称")
    private String name;

    @ApiModelProperty(value = "不同货币的金额")
    private String amountJson;

    @ApiModelProperty("自定义货号")
    private String innerCode;

    @ApiModelProperty("企业id")
    private Long companyId;

    @ApiModelProperty("sku原始单价")
    private BigDecimal amount;

    @ApiModelProperty("sku原始货币")
    private String currency;

    @ApiModelProperty("单价")
    private BigDecimal transAmount;

    @ApiModelProperty("sku请求货币")
    private String transCurrency;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("sku 图片地址，多个用英文逗号分隔")
    private String imgUrl;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态：1.启用；2.禁用")
    private Integer status;

    private Map<String, String> skuAttrs;
}
